//
//  RecordViewController.h
//  EZAudioRecordExample
//
//  Created by RainSets on 12/15/13.
//  Copyright (c) 2013 RainSets. All rights reserved.
//

#import <UIKit/UIKit.h>

// Import EZAudio header
#import "EZAudio.h"

// Import AVFoundation to play the file (will save EZAudioFile and EZOutput for separate example)
#import <AVFoundation/AVFoundation.h>

// By default this will record a file to the application's documents directory (within the application's sandbox)
#define kAudioFilePath @"EZAudioTest.m4a"

typedef enum{
    stopRecord = 0,
    startRecord
}STARTSTOPRECORD;

@interface RecordViewController : UIViewController <EZMicrophoneDelegate>

/**
 Use a OpenGL based plot to visualize the data coming in
 */
@property (nonatomic,weak) IBOutlet EZAudioPlot *audioPlot;

/**
 A flag indicating whether we are recording or not
 */
@property (nonatomic,assign) BOOL isRecording;

/**
 The microphone component
 */
@property (nonatomic,strong) EZMicrophone *microphone;

/**
 The recorder component
 */
@property (nonatomic,strong) EZRecorder *recorder;

@property (nonatomic, assign) STARTSTOPRECORD stRecord;


@end
